﻿<%@ WebHandler Language="C#" Class="ShowCartDetail" %>

using System;
using System.Web;
using System.Collections.Generic;

public class ShowCartDetail : FiveSistersHandler
{

    public override void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        if (IsAuthenticate(context))
        {
            try
            {
                Order order = context.Session[FiveSistersCore.Cart] as Order;
                context.Response.Write(CartInfoViewer.Viewer(order));       
            }
            catch (Exception ex)
            {
                PMSA.Framework.Log.CLogManager.Write("ShowCartDetail.ashx", ex.ToString(), "FIVE");
                context.Response.Write("FAIL");
            }
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}